package com.baiye.template;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@MapperScan("com.baiye.template.dao")
//@EnableGlobalMethodSecurity(prePostEnabled=true)
//@EnableConfigurationProperties(RsaKeyProperties.class)  //将配置类放入Spring容器中
@SpringBootApplication()
@EnableSwagger2
//暂时关闭
@EnableWebSecurity
public class TemplateApplication {

    public static void main(String[] args) {
        SpringApplication.run(TemplateApplication.class, args);
    }

}
